﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="T_HomePage.aspx.cs" Inherits="T_HomePage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
            <!--datagrid 用于数据绑定显示表格信息-->
       &nbsp;<asp:datagrid   id="dg1" runat="server"	 
                BorderColor="Black"
                BorderWidth="1px"
                CellPadding="3"
                Font-Size="8pt"
                OnPageIndexChanged="MyDataGrid_Page"
                AutoGenerateColumns="True" Width="603px" Font-Names="Verdana" PagerStyle-HorizontalAlign="Right"
                PagerStyle-Mode="NumericPages" AllowPaging="True" HorizontalAlign="Center"   
               >
            
                        <HeaderStyle BackColor="#AAAADD"/>
                        <EditItemStyle BackColor="Yellow"/>
                        <PagerStyle HorizontalAlign="Left" Wrap="True" Mode="NumericPages"></PagerStyle>
	         </asp:datagrid>

            
  </div>
    <div>
    <p style="FONT-SIZE:9pt" align="center">    <!--用于分页-->
  
            <asp:label id="lblPageCount" runat="server"></asp:label>&nbsp;
            <asp:label id="lblCurrentIndex" runat="server"></asp:label>
            <asp:linkbutton id="btnFirst" onclick="PagerButtonClick" runat="server" Font-Names="verdana"
  	                        Font-size="8pt" ForeColor="navy" CommandArgument="0"></asp:linkbutton>&nbsp;
            <asp:linkbutton id="btnPrev" onclick="PagerButtonClick" runat="server" Font-Names="verdana"
  	                        Font-size="8pt" ForeColor="navy" CommandArgument="prev"></asp:linkbutton>&nbsp;
            <asp:linkbutton id="btnNext" onclick="PagerButtonClick" runat="server" Font-Names="verdana"
  	                        Font-size="8pt" ForeColor="navy" CommandArgument="next"></asp:linkbutton>&nbsp;
            <asp:linkbutton id="btnLast" onclick="PagerButtonClick" runat="server" Font-Names="verdana"
  	                        Font-size="8pt" ForeColor="navy" CommandArgument="last"></asp:linkbutton>
  </p>
    </div>
    </form>
</body>
</html>
